//
//  PersonViewController.m
//  LanQiuQuan
//
//  Created by TonyGenius on 16/3/5.
//  Copyright © 2016年 Rip. All rights reserved.
//

#import "PersonViewController.h"
#import "Marco.h"
@interface PersonViewController ()
{
    XMTabBarController *_tab;
}

@end

@implementation PersonViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initNavTab];
}

- (void)viewWillAppear:(BOOL)animated
{
    _tab = (XMTabBarController *)self.tabBarController;
    [_tab xmTabBarHidden:NO animated:YES];
}

- (void)initNavTab
{
    [self.navigationController.navigationBar setBarTintColor:[UIColor lightGrayColor]];
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    self.navigationItem.title = @"个人信息";
    
    
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithTitle:@"设置" style:UIBarButtonItemStylePlain target:self action:@selector(setPersonInfo)];
    [rightItem setTintColor:[UIColor whiteColor]];
    self.navigationItem.rightBarButtonItem = rightItem;
    
}

- (void)setPersonInfo
{
    
}


- (IBAction)myTeams:(id)sender {
    MyTeamsViewController *myTeamsVC = [[MyTeamsViewController alloc] init];
    [self.navigationController pushViewController:myTeamsVC animated:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
